package com.vision.util.http;

import com.google.common.collect.Lists;
import org.apache.http.message.BasicHeader;

import java.util.List;

/**
 * @author zhongchao
 * @title
 * @date 2017-08-18
 * @since v1.0.0
 */
public class DefaultHeaders {

    private static final List<BasicHeader> basicHeaders = Lists.newArrayList();

    static {
        basicHeaders.add(new BasicHeader("Accept", "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8"));
        basicHeaders.add(new BasicHeader("Accept-Encoding", "gzip, deflate, br"));
        basicHeaders.add(new BasicHeader("Accept-Language", "zh-CN,zh;q=0.8"));
        basicHeaders.add(new BasicHeader("Connection", "keep-alive"));
        basicHeaders.add(new BasicHeader("User-Agent", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.90 Safari/537.36"));
        basicHeaders.add(new BasicHeader("Content-Type", "application/x-www-form-urlencoded; charset=utf-8"));
    }

    public static List<BasicHeader> getBasicHeaders() {
        return basicHeaders;
    }
}
